package com.www.jpa.entity;

import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import lombok.Data;
import org.hibernate.annotations.BatchSize;

/**
 * <p>
 * .
 *
 * @author o_o
 * @date 2025-06-23
 */
@BatchSize(size = 2000)
@Entity
@Table(name = "sys_backup")
@Data
public class BackupRecord {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "backup_name", nullable = false)
    private String backupName;

    @Column(name = "tables_included", nullable = false)
    private String tablesIncluded;

    @Column(name = "backup_time", nullable = false)
    private LocalDateTime backupTime;

    @Lob
    @Column(name = "data_json", length = Integer.MAX_VALUE)
    private String dataJson;

}